package com.simplegovern.authority;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * SysAction entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_action")
public class SysAction implements java.io.Serializable {

	// Fields

	private Long id;
	private SysActiontype sysActiontype;
	private String name;
	private String url;

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "groupId", nullable = false)
	public SysActiontype getSysActiontype() {
		return this.sysActiontype;
	}

	public void setSysActiontype(SysActiontype sysActiontype) {
		this.sysActiontype = sysActiontype;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "url", nullable = false)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}